package com.yznote.cloudesk.manage.database.service.impl;

import com.yznote.cloudesk.manage.database.mapper.DataBaseMapper;
import com.yznote.cloudesk.manage.database.pojo.Table;
import com.yznote.cloudesk.manage.database.service.DataBaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DataBaseServiceImpl implements DataBaseService {
    @Autowired
    DataBaseMapper dataBaseMapper;
    @Override
    public List<String> selectTables() {
        return dataBaseMapper.queryTables();
    }

    @Override
    public List<Table> selectTablesAndDetail() {
        return dataBaseMapper.queryTablesAndDetails();
    }
}
